<!DOCTYPE html>
<html lang="en"
      xmlns="http://www.w3.org/1999/xhtml"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title></title>
    <script src="js/jquery-3.5.1.min.js"></script>
    <link rel="stylesheet" type="text/css" href="layui-v2.6.4/layui/css/layui.css" />
    <link rel="stylesheet" type="text/css" href="layui-v2.6.4/layui/css/modules/code.css" />
    <script src="layui-v2.6.4/layui/layui.js" type="text/javascript" charset="utf-8"></script>
    <script>
        layui.use('element', function() {
            var element = layui.element;
        });
    </script>
</head>
<body>
<form action="/addAdminUp" class="layui-form">
    <div class="layui-form-item">
        <label class="layui-form-label">申请人</label>
        <div class="layui-input-block">
            <input lay-verify="required" name="num" placeholder="请输入您的账号" required type="text"
                   autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">目标职位</label>
        <div class="layui-input-block">
            <select lay-verify="required" name="target">
                <option value=""></option>
                <option value="超级管理员">超级管理员</option>
                <option value="最高管理员">最高管理员</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">目前职位</label>
        <div class="layui-input-block">
            <input checked name="now" title="普通管理员" type="radio" value="普通管理员">
            <input name="now" title="超级管理员" type="radio" value="超级管理员">
        </div>
    </div>
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">申请理由</label>
        <div class="layui-input-block">
            <textarea name="desc" required lay-verify="required" placeholder="请输入内容" class="layui-textarea"></textarea>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>

<script>
    //Demo
    layui.use('form', function() {
        var form = layui.form;
        //监听提交
        form.on('submit(formDemo)', function(data) {
            return true;
        });
    });
</script>
</body>
</html>
